package cj.web.admin.domain;
/*
 *  
 *  
*/
import java.io.Serializable;

/**
 * 投票表
 */
public class Survey extends DataTablePage implements Serializable {

    protected Integer id;
    protected String name;
	protected String descs;
	protected Integer choiceCount;
	protected Integer choiceFraction;
	protected Integer judgementCount;
	protected Integer judgementFraction;
	protected Integer multiSelectCount;
	protected Integer multiSelectFraction;
	protected Integer surveyDepotId;
	protected String voteStart;
	protected String voteEnd;
	protected Integer deleteFlag;
	protected String createUser;
	protected String createAt;
	protected String updateUser;
	protected String updateAt;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescs() {
		return descs;
	}
	public void setDescs(String descs) {
		this.descs = descs;
	}
	public Integer getChoiceCount() {
		return choiceCount;
	}
	public void setChoiceCount(Integer choiceCount) {
		this.choiceCount = choiceCount;
	}
	public Integer getChoiceFraction() {
		return choiceFraction;
	}
	public void setChoiceFraction(Integer choiceFraction) {
		this.choiceFraction = choiceFraction;
	}
	public Integer getJudgementCount() {
		return judgementCount;
	}
	public void setJudgementCount(Integer judgementCount) {
		this.judgementCount = judgementCount;
	}
	public Integer getJudgementFraction() {
		return judgementFraction;
	}
	public void setJudgementFraction(Integer judgementFraction) {
		this.judgementFraction = judgementFraction;
	}
	public Integer getMultiSelectCount() {
		return multiSelectCount;
	}
	public void setMultiSelectCount(Integer multiSelectCount) {
		this.multiSelectCount = multiSelectCount;
	}
	public Integer getMultiSelectFraction() {
		return multiSelectFraction;
	}
	public void setMultiSelectFraction(Integer multiSelectFraction) {
		this.multiSelectFraction = multiSelectFraction;
	}
	public Integer getSurveyDepotId() {
		return surveyDepotId;
	}
	public void setSurveyDepotId(Integer surveyDepotId) {
		this.surveyDepotId = surveyDepotId;
	}
	public String getVoteStart() {
		return voteStart;
	}
	public void setVoteStart(String voteStart) {
		this.voteStart = voteStart;
	}
	public String getVoteEnd() {
		return voteEnd;
	}
	public void setVoteEnd(String voteEnd) {
		this.voteEnd = voteEnd;
	}
	public Integer getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getCreateAt() {
		return createAt;
	}
	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	public String getUpdateAt() {
		return updateAt;
	}
	public void setUpdateAt(String updateAt) {
		this.updateAt = updateAt;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result
				+ ((choiceCount == null) ? 0 : choiceCount.hashCode());
		result = prime * result
				+ ((choiceFraction == null) ? 0 : choiceFraction.hashCode());
		result = prime * result
				+ ((createAt == null) ? 0 : createAt.hashCode());
		result = prime * result
				+ ((createUser == null) ? 0 : createUser.hashCode());
		result = prime * result
				+ ((deleteFlag == null) ? 0 : deleteFlag.hashCode());
		result = prime * result + ((descs == null) ? 0 : descs.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((judgementCount == null) ? 0 : judgementCount.hashCode());
		result = prime
				* result
				+ ((judgementFraction == null) ? 0 : judgementFraction
						.hashCode());
		result = prime
				* result
				+ ((multiSelectCount == null) ? 0 : multiSelectCount.hashCode());
		result = prime
				* result
				+ ((multiSelectFraction == null) ? 0 : multiSelectFraction
						.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result
				+ ((surveyDepotId == null) ? 0 : surveyDepotId.hashCode());
		result = prime * result
				+ ((updateAt == null) ? 0 : updateAt.hashCode());
		result = prime * result
				+ ((updateUser == null) ? 0 : updateUser.hashCode());
		result = prime * result + ((voteEnd == null) ? 0 : voteEnd.hashCode());
		result = prime * result
				+ ((voteStart == null) ? 0 : voteStart.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Survey other = (Survey) obj;
		if (choiceCount == null) {
			if (other.choiceCount != null)
				return false;
		} else if (!choiceCount.equals(other.choiceCount))
			return false;
		if (choiceFraction == null) {
			if (other.choiceFraction != null)
				return false;
		} else if (!choiceFraction.equals(other.choiceFraction))
			return false;
		if (createAt == null) {
			if (other.createAt != null)
				return false;
		} else if (!createAt.equals(other.createAt))
			return false;
		if (createUser == null) {
			if (other.createUser != null)
				return false;
		} else if (!createUser.equals(other.createUser))
			return false;
		if (deleteFlag == null) {
			if (other.deleteFlag != null)
				return false;
		} else if (!deleteFlag.equals(other.deleteFlag))
			return false;
		if (descs == null) {
			if (other.descs != null)
				return false;
		} else if (!descs.equals(other.descs))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (judgementCount == null) {
			if (other.judgementCount != null)
				return false;
		} else if (!judgementCount.equals(other.judgementCount))
			return false;
		if (judgementFraction == null) {
			if (other.judgementFraction != null)
				return false;
		} else if (!judgementFraction.equals(other.judgementFraction))
			return false;
		if (multiSelectCount == null) {
			if (other.multiSelectCount != null)
				return false;
		} else if (!multiSelectCount.equals(other.multiSelectCount))
			return false;
		if (multiSelectFraction == null) {
			if (other.multiSelectFraction != null)
				return false;
		} else if (!multiSelectFraction.equals(other.multiSelectFraction))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (surveyDepotId == null) {
			if (other.surveyDepotId != null)
				return false;
		} else if (!surveyDepotId.equals(other.surveyDepotId))
			return false;
		if (updateAt == null) {
			if (other.updateAt != null)
				return false;
		} else if (!updateAt.equals(other.updateAt))
			return false;
		if (updateUser == null) {
			if (other.updateUser != null)
				return false;
		} else if (!updateUser.equals(other.updateUser))
			return false;
		if (voteEnd == null) {
			if (other.voteEnd != null)
				return false;
		} else if (!voteEnd.equals(other.voteEnd))
			return false;
		if (voteStart == null) {
			if (other.voteStart != null)
				return false;
		} else if (!voteStart.equals(other.voteStart))
			return false;
		return true;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Survey [id=").append(id).append(", name=").append(name)
				.append(", descs=").append(descs).append(", choiceCount=")
				.append(choiceCount).append(", choiceFraction=")
				.append(choiceFraction).append(", judgementCount=")
				.append(judgementCount).append(", judgementFraction=")
				.append(judgementFraction).append(", multiSelectCount=")
				.append(multiSelectCount).append(", multiSelectFraction=")
				.append(multiSelectFraction).append(", surveyDepotId=")
				.append(surveyDepotId).append(", voteStart=").append(voteStart)
				.append(", voteEnd=").append(voteEnd).append(", deleteFlag=")
				.append(deleteFlag).append(", createUser=").append(createUser)
				.append(", createAt=").append(createAt).append(", updateUser=")
				.append(updateUser).append(", updateAt=").append(updateAt)
				.append("]");
		return builder.toString();
	}
}